<?
$posts = getAllPosts(); // Przykad funkcji, ktra zwraca wszystkie identyfikatory
   // postw utworzonych przez danego autora.
for($i = 0; $i<count($posts); $i++)
{
   $title = getPostTitle($post[$i]);
   echo $title;
   $author = getPostAuthor($post[$i]);
   $content = parseBBCode(getPostContent($post[$i]));
   echo "Tre";
   $comments = getAllComments($post[$i]);
   for ($j=0; $j<count($comments); $j++)
   {
      $commentAuthor = getCommentAuthor($comments[$j]);
      echo $commentAuthor;
      $comment = getCommentContent($comments[$j]);
      echo $comment;
   }
}
?>
